<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php if ($this->_var['favourable_list']): ?>
	<div class="youhui_product">
		<div class="shopping_lanmu"><?php echo $this->_var['lang']['label_favourable']; ?></div>
        <?php $_from = $this->_var['favourable_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'favourable');if (count($_from)):
    foreach ($_from AS $this->_var['favourable']):
?>
        <form action="flow.php" method="post">
                <?php if ($this->_var['favourable']['act_type'] == 0): ?>
				<div>
					<?php $_from = $this->_var['favourable']['gift']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'gift');if (count($_from)):
    foreach ($_from AS $this->_var['gift']):
?>
					 <div class="youhui_product_div">
						<div class="youhui_product_div_img"><img src="<?php echo $this->_var['gift']['goods_thumb']; ?>" width="100p" height="100p" /></div>
						<div class="youhui_product_div_txt">
						<!-- <input type="checkbox"  /> --> 
							<a href="goods.php?id=<?php echo $this->_var['gift']['id']; ?>" target="_blank"><?php echo $this->_var['gift']['name']; ?></a>
						</div>
						<!--<div class="youhui_product_div_txt" style="text-decoration:line-through">原价¥188</div>-->
						<div class="youhui_product_div_txt" style="color:#4d9800;"><?php echo $this->_var['gift']['formated_price']; ?> </div>
                        <div class="youhui_product_div_btn" onclick="javascript:addSingleFavourableToCart(<?php echo $this->_var['favourable']['act_id']; ?>,<?php echo $this->_var['gift']['id']; ?>,'<?php echo $this->_var['total']['goods_price']; ?>')">
                        </div>
                        
						<input type="hidden" name="act_id" value="<?php echo $this->_var['favourable']['act_id']; ?>" />
						<input type="hidden" name="step" value="add_favourable" />	
                        <input type="hidden" name="goods_id" value="<?php echo $this->_var['gift']['id']; ?>" />		   				
					</div>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				</div>
              <?php endif; ?>          
            <?php if ($this->_var['favourable']['available']): ?>
            <?php endif; ?>
        </form>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	</div>
<?php endif; ?>